package packet

import (
	"encoding/hex"
	"hy_808/protocol/hygprs"
	"strings"
)

/*

##调度业务端心跳包##
b0
00 11
02
02 9a
a3
f1 00 00 00 00
00 00 02 f3
b1


*/

type ScheduleServerAlive struct {
	hygprs.Fields
}

func GenScheduleServerAlive(line, bus int) (p ScheduleServerAlive) {
	data, _ := hex.DecodeString(strings.ReplaceAll("b0 00 11 02 02 9a a3 01 00 01 86 A1 02 00 01 86 A1 f1 00 00 00 00 00 00 02 f3 b1", " ", ""))
	sca := ScheduleServerAlive{hygprs.MakeFields(hygprs.MakePacket(data))}
	sca.SetLineID(uint32(line))
	sca.SetLineID(uint32(bus))
	return sca
}
